<?php


namespace App\Http\Controllers\Api\V1;

class NoticeController extends BaseController
{

    /**
     * 机构公告列表
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function lists()
    {
        $student = auth()->user();
        $mechanism = $student->mechanism;
        $noticeList = $mechanism->affiche()->get(['id', 'title', 'content']);
        return response()->json(['list'=>$noticeList]);
    }
}
